package ccy.ccyknapsackbind;

import ccy.ccylibrary.config.CcyConfig;
import ccy.ccylibrary.config.annotation.CcyConfigRead;
import ccy.ccylibrary.config.annotation.CcyInstance;
import ccy.ccylibrary.config.type.ConfigReadType;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.List;

public class CcyKnapsackBind extends JavaPlugin {

    private final String pluginName = "背包绑定物品";
    @CcyConfigRead(type = ConfigReadType.FILECONFIG)
    private FileConfiguration fileread;
    @CcyConfigRead
    private String BindLore;
    @CcyConfigRead
    private String Message;
    @CcyConfigRead
    private String MessageDrop;
    @CcyConfigRead
    private List<String> WhiteGuiList;
    @CcyInstance
    public static CcyKnapsackBind ccyKnapsackBind;

    @Override
    public void onEnable() {
        CcyConfig.initialization(this,pluginName);
        getServer().getPluginManager().registerEvents(new InventoryClick(),this);
        getLogger().info(pluginName+"插件已加载...");
    }

    @Override
    public void onDisable() {
        getLogger().info(pluginName+"插件已卸载！");
    }

    public String getBindLore() {
        return BindLore;
    }

    public String getMessage() {
        return Message;
    }

    public List<String> getWhiteGuiList() {
        return WhiteGuiList;
    }

    public String getMessageDrop() {
        return MessageDrop;
    }
}
